﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Infrastructure;
using WsdShop.Model.SearchModels;
using WsdShop.Model.ViewModels;
using WsdShop.Model;

namespace WsdShop.IService
{
    public interface IFreightService
    {
        List<FreightManageResponse> GetFreightManage(BaseSearchModel search, out int total);

        Result DelFreight(int Id, int currentUserId);

        Result DelFreightDetail(int detailId, int currentUserId);

        Result EditFreightSubmit(FreightSave Freight, List<FreightDetailSave> FreightDetail, int currentUserId);

        FreightResponse EditFreight(int Id);

        Result GetPostageMoney(List<CartProduct> products, string province, out decimal postMoney);

        Result GetPostageMoney(List<CartProduct> products, int areaId, out decimal postMoney);

        decimal GetPostageMoney(List<SpecResponse> products, int areaId);

        List<FreightTemplate> GetFreightTemplateList();
    }
}
